<?php

namespace common\logics;

/**
 * 用户CELL信息
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class UserCellLogic extends \common\models\user\User {

    /**
     * @return 
     */
    public function fields() {
        return [
            'id',
            'username' => 'nickname',
            'avatar',
            'extras' => function() {
                return $this->decryptMobile();
            },
        ];
    }

}
